//-----------------------------------------------------------------------
// <copyright file="a_Avail_PaymentTypeService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_Avail_PaymentTypeService
    {
        #region a_Avail_PaymentType

        public static void Createa_Avail_PaymentType(a_Avail_PaymentType a_Avail_PaymentType)
        {            
            try
            {
                a_Avail_PaymentTypeDAO a_Avail_PaymentTypeDAO = new a_Avail_PaymentTypeDAO();
                a_Avail_PaymentTypeDAO.Createa_Avail_PaymentType(a_Avail_PaymentType);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Avail_PaymentType(a_Avail_PaymentType a_Avail_PaymentType)
        {            
            try
            {
                a_Avail_PaymentTypeDAO a_Avail_PaymentTypeDAO = new a_Avail_PaymentTypeDAO();
                a_Avail_PaymentTypeDAO.Updatea_Avail_PaymentType(a_Avail_PaymentType);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Avail_PaymentType(int paymentID)
        {            
            try
            {
                a_Avail_PaymentTypeDAO a_Avail_PaymentTypeDAO = new a_Avail_PaymentTypeDAO();
                a_Avail_PaymentTypeDAO.Deletea_Avail_PaymentType(paymentID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Avail_PaymentType Geta_Avail_PaymentType(int paymentID)
        {            
            try
            {
                a_Avail_PaymentTypeDAO a_Avail_PaymentTypeDAO = new a_Avail_PaymentTypeDAO();
                return a_Avail_PaymentTypeDAO.Geta_Avail_PaymentType(paymentID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_Avail_PaymentTypeCollection Geta_Avail_PaymentTypeList(a_Avail_PaymentTypeColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_Avail_PaymentTypeDAO a_Avail_PaymentTypeDAO = new a_Avail_PaymentTypeDAO();
                return a_Avail_PaymentTypeDAO.Geta_Avail_PaymentTypeList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_Avail_PaymentTypeCollection Geta_Avail_PaymentTypeList(a_Avail_PaymentTypeColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_Avail_PaymentTypeDAO a_Avail_PaymentTypeDAO = new a_Avail_PaymentTypeDAO();
                return a_Avail_PaymentTypeDAO.Geta_Avail_PaymentTypeList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}